<!DOCTYPE html>
<html lang="en">
<head>
<title>New Document</title>
<meta charset="utf-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="${webRoot}resources/css/bootstrap.min.css" rel="stylesheet"
	media="screen">
<link href="${webRoot}resources/css/style.css" rel="stylesheet">
</head>
<body class="main">
	<ul class="breadcrumb">
		<li><span id="test">您当前的位置：</span><a href="#">首页</a> <span
			class="divider">>></span></li>
		<li class="active">${push}</li>
	</ul>
	
		<form class="form-horizontal" method="post"
			action="${webRoot}push/sendmsg.do" id="form1">
			
			<div class="control-group">
				<label class="control-label" for="adver_Desc">标题</label>
				<div class="controls">
					<input type="text" id="title" name="title"
						placeholder="标题">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="adver_Desc">内容</label>
				<div class="controls">
					<textarea id="content" name="content" ></textarea>
				</div>
			</div>
			<div class="control-group">
				<div class="controls">
					<button type="button" class="btn" onclick="sendValue()">确认推送</button>
				</div>
			</div>
		</form>
	
	<script src="${webRoot}resources/js/jquery-1.9.2.min.js"></script>
	<script src="${webRoot}resources/js/bootstrap.min.js"></script>
	<script src="${webRoot}resources/js/js.js"></script>
	<script type="text/javascript">
		function sendValue() {
			
			var title = $("#title").val();
			var content = $("#content").val();

			if ($.trim(title) == null || $.trim(title) == "") {

				alert("标题不能为空");
				return;

			}
			if ($.trim(content) == null || $.trim(content) == "") {

				alert("内容不能为空");
				return;

			}
			$('#form1').submit();
		}

		
	</script>
</body>
</html>
